<script setup>
import BackLink from "@/components/BackLink/index.vue"
import {useRouter} from "vue-router";
const router = useRouter()
const editForm = reactive({
  a: '小李',
  b: '22090231',
  c: '侦查二班一区队',
  d: '侦查系',
  e: '2026',
  f: '江苏省南京市玄武区',
})

const handleBack = () => {
  router.go(-1)
}
</script>

<template>
  <div class="outBox">
    <el-card>
      <BackLink/>
      <div class="form-box">
        <div class="form-line">
          <div class="form-item">
            <div class="form-name">创建人</div>
            <div class="form-cont">
              <el-input v-model="editForm.a" />
            </div>
          </div>
          <div class="form-item">
            <div class="form-name">学号</div>
            <div class="form-cont">
              <el-input v-model="editForm.b" />
            </div>
          </div>
          <div class="form-item">
            <div class="form-name">班级</div>
            <div class="form-cont">
              <el-input v-model="editForm.c" />
            </div>
          </div>
        </div>
        <div class="form-line">
          <div class="form-item">
            <div class="form-name">院系</div>
            <div class="form-cont">
              <el-input v-model="editForm.d" />
            </div>
          </div>
          <div class="form-item">
            <div class="form-name">毕业年份</div>
            <div class="form-cont">
              <el-input v-model="editForm.e" />
            </div>
          </div>
          <div class="form-item">
            <div class="form-name">户籍地</div>
            <div class="form-cont">
              <el-input v-model="editForm.f" />
            </div>
          </div>
        </div>
        <div class="form-textArea">
          <div class="form-item">
            <div class="form-name">学习档案</div>
            <div class="text-items">
              <div class="text-item">
                <div class="tit">公安部交通管理局模拟交警实战素质能力大赛</div>
                <div class="bottom">
                  <div class="time">2019-06-30 00:01:23</div>
                  <div class="check">
                    <el-button type="primary" link>查看详情</el-button>
                  </div>
                </div>
              </div>
              <div class="text-item">
                <div class="tit">公安部交通管理局模拟交警大赛</div>
                <div class="bottom">
                  <div class="time">2019-06-30 00:01:23</div>
                  <div class="check">
                    <el-button type="primary" link>查看详情</el-button>
                  </div>
                </div>
              </div>
              <div class="text-item">
                <div class="tit">警校新型犯罪侦查技术研发论文</div>
                <div class="bottom">
                  <div class="time">2019-06-30 00:01:23</div>
                  <div class="check">
                    <el-button type="primary" link>查看详情</el-button>
                  </div>
                </div>
              </div>
              <div class="text-item">
                <div class="tit">警校新型犯罪大赛特等奖</div>
                <div class="bottom">
                  <div class="time">2019-06-30 00:01:23</div>
                  <div class="check">
                    <el-button type="primary" link>查看详情</el-button>
                  </div>
                </div>
              </div>
              <div class="text-item">
                <div class="tit">警校新型犯罪侦查技术研发大奖赛三等奖</div>
                <div class="bottom">
                  <div class="time">2019-06-30 00:01:23</div>
                  <div class="check">
                    <el-button type="primary" link>查看详情</el-button>
                  </div>
                </div>
              </div>
              <div class="text-item">
                <div class="tit">警校新型犯罪侦查技术研发大奖赛三等奖</div>
                <div class="bottom">
                  <div class="time">2019-06-30 00:01:23</div>
                  <div class="check">
                    <el-button type="primary" link>查看详情</el-button>
                  </div>
                </div>
              </div>
              <div class="text-item">
                <div class="tit">警校新型犯罪侦查技术研发大奖赛专利</div>
                <div class="bottom">
                  <div class="time">2019-06-30 00:01:23</div>
                  <div class="check">
                    <el-button type="primary" link>查看详情</el-button>
                  </div>
                </div>
              </div>
              <div class="text-item">
                <div class="tit">警校新型犯罪侦查技术项目作品</div>
                <div class="bottom">
                  <div class="time">2019-06-30 00:01:23</div>
                  <div class="check">
                    <el-button type="primary" link>查看详情</el-button>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="center-btns">
          <el-button  @click="handleBack" type="primary">返回</el-button>
        </div>
      </div>
    </el-card>

  </div>
</template>

<style scoped lang="scss">
.text-items{
  padding: 20px;
  display: grid;
  justify-content: space-between;
  grid-template-columns: repeat(2, 550px);
  .text-item{
    margin-bottom: 20px;
  }
  .tit{
    font-size: 22px;
    margin-bottom: 5px;
  }
  .bottom{
    display: flex;
    justify-content: space-between;
    .time{
      color: #827e7d;
    }
  }
}
.center-btns{
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.form-textArea{
  border: 1px solid #e5e5e5;
  min-height:400px;
  :deep(.el-textarea){
    --el-input-border-color:#fff !important;
    --el-input-focus-border:#fff !important;
    --el-input-hover-border-color:#fff !important;
    --el-input-focus-border-color:#fff !important;

  }
}
.form-box{
  .form-name{
    background: #f1f7ff;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    font-weight: bold;
    border-right: 1px solid #e5e5e5;
  }
  .form-line{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #e5e5e5;
    margin-bottom: 20px;
    .form-item{
      display: flex;
      align-items: center;

      .form-cont{
        width: calc(100% - 100px);
        :deep(.el-input){
          --el-input-border-color:#fff !important;
          --el-input-focus-border:#fff !important;
          --el-input-focus-border-color:#fff !important;
        }
      }
    }
  }
}
</style>
